<script setup lang="ts">
import { RouterView } from 'vue-router'
import { zhCN, dateZhCN, NConfigProvider, NMessageProvider, NDialogProvider } from 'naive-ui'
import { themeOverrides } from '@/themes/defaultTheme'
</script>

<template>
  <NConfigProvider :theme-overrides="themeOverrides" :locale="zhCN" :date-locale="dateZhCN" abstract>
    <NMessageProvider :max="1">
      <NDialogProvider>
        <router-view />
      </NDialogProvider>
    </NMessageProvider>
  </NConfigProvider>
</template>
